FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g8e5b365.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g8e5b365.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=8e5b365 OS_GIT_VERSION=4.10.0-202202160023.p0.g8e5b365.assembly.stream-8e5b365 SOURCE_DATE_EPOCH=1641202695 SOURCE_GIT_COMMIT=8e5b36511861e63664cf4abd4f4f63642ae3c644 SOURCE_GIT_TAG=8e5b3651 SOURCE_GIT_URL=https://github.com/openshift/cluster-policy-controller 
WORKDIR /go/src/github.com/openshift/cluster-policy-controller
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g8e5b365.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g8e5b365.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=8e5b365 OS_GIT_VERSION=4.10.0-202202160023.p0.g8e5b365.assembly.stream-8e5b365 SOURCE_DATE_EPOCH=1641202695 SOURCE_GIT_COMMIT=8e5b36511861e63664cf4abd4f4f63642ae3c644 SOURCE_GIT_TAG=8e5b3651 SOURCE_GIT_URL=https://github.com/openshift/cluster-policy-controller 
COPY --from=builder /go/src/github.com/openshift/cluster-policy-controller/cluster-policy-controller /usr/bin/

LABEL \
        io.k8s.display-name="OpenShift Cluster Policy Controller Command" \
        io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
        io.openshift.tags="openshift,cluster-policy-controller" \
        name="openshift/ose-cluster-policy-controller" \
        com.redhat.component="ose-cluster-policy-controller-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="kube-controller-manager" \
        release="202202160023.p0.g8e5b365.assembly.stream" \
        io.openshift.build.commit.id="8e5b36511861e63664cf4abd4f4f63642ae3c644" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-policy-controller" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-policy-controller/commit/8e5b36511861e63664cf4abd4f4f63642ae3c644" \
        version="v4.10.0"

